
const service = require('../service/user.service');

class userController {

    async create (ctx, next) {
       
        //获取用户请求传递的参数
        const user = ctx.request.body;

        //数据库操作,入库
        let result = await service.create(user);

        //响应数据
        ctx.body = result;
   }
}

module.exports = new userController();